package com.zhyl.demo.mapper;

import com.zhyl.demo.entity.News;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;

@Mapper
public interface NewsMapper {
    ArrayList<News> list();

    Integer addNews(News news);

    Integer editNews(News news);

    Integer deleteNews(Integer id);

    ArrayList<News> allList();
}
